<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>5.v-show</title>
        <!-- 引入Vue -->
        <script src="../js/vue.js"></script>
    </head>
    <style>
        .banner{
            height: 50px;
            background: gainsboro;
        }


    </style>
    <body>
        <!-- 准备好一个容器-->
        <div id="app">
            <div v-show="isVIP" class="banner">{{str}}</div>

           
        </div>
    </body>

    <script>
        new Vue({
            el:"#app",
            data:{
                str:"这是广告",
                isVIP:false
            }
        })
    </script>
</html>